package per.ace.annotation.dao;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import per.ace.annotation.model.Order;

import java.util.ArrayList;
import java.util.List;

@Component
public class OrderDao {

    public List<Order> query(String customerId){
        List<Order> l = new ArrayList();
        for (int i = 0; i < 6; i++) {
            Order o = new Order();
            o.setId(i+1+"");
            o.setCustomerId("1");
            l.add(o);
        }
        return  l;
    }
}
